package com.cnsoft.persistent.player.U101111PlayerPassport;

import java.util.List;

import javax.annotation.Resource;

import org.cnsoft.framework.db.page.PageModel;
import org.cnsoft.framework.db.support.ext.MyDataBaseOperateSupport2;
import org.springframework.stereotype.Repository;

/**
 * 会员账户密码信息数据库操作实体
 */
@Repository("U101111PlayerPassportDao")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class U101111PlayerPassportDao extends MyDataBaseOperateSupport2<U101111PlayerPassportDBO> {
	@Resource
	private U101111PlayerPassportMapper mapperU101111PlayerPassport;

	public U101111PlayerPassportMapper getMapper() {
		return mapperU101111PlayerPassport;
	}

	// 自定义查询
	public List<U101111PlayerPassportDBO> doSelectDataCustomParams(U101111PlayerPassportDBO formParamBean) {
		return getMapper().doSelectDataCustomParams(formParamBean);
	}

	// 自定义分页查询
	public PageModel<U101111PlayerPassportDBO> doSelectPageCustomParams(PageModel<U101111PlayerPassportDBO> formParamPageModel) {
		// 补充删除标记
		// ((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean()).prepareDeleteFlag(1);
		// SAAS模式
		// MySAASBusinesslogicPlugin.sqlHandle((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean());
		// 默认排序
		// formParamPageModel.setOrderbyIdDESC();
		// 查询数据
		formParamPageModel.setPageListData(getMapper().doSelectPageCustomParams(formParamPageModel));

		return formParamPageModel;
	}
}
